#define _CRT_SECURE_NO_WARNINGS 1

#include"Heap.h"

void HeapTest01()
{
	Heap hp;

	HeapInit(&hp);

	int arr[] = { 10, 15, 17 ,13, 20, 19 };
	for (int i = 0; i < 6; i++)
	{
		HeapPush(&hp, arr[i]);
	}
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}

	HeapDestroy(&hp);
}

int main()
{
	HeapTest01();
	return 0;
}